package com.google.android.gms.common.stats;

import android.os.Parcel;
import android.os.Parcelable.Creator;
import android.text.TextUtils;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable.Class;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable.Constructor;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable.Field;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable.Param;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable.VersionField;
import java.util.List;
import o.apc;
import o.api;

@Class(creator = "WakeLockEventCreator")
public final class WakeLockEvent extends StatsEvent {
    public static final Creator<WakeLockEvent> CREATOR = new api();
    @Field(getter = "getEventKey", id = 12)
    private final String ʻ;
    @Field(getter = "getElapsedRealtime", id = 8)
    private final long ʼ;
    @Field(getter = "getWakeLockType", id = 5)
    private final int ʽ;
    @Field(getter = "getEventType", id = 11)
    private int ˊ;
    @Field(getter = "getDeviceState", id = 14)
    private int ˊॱ;
    @Field(getter = "getWakeLockName", id = 4)
    private final String ˋ;
    @Field(getter = "getAcquiredWithTimeout", id = 18)
    private final boolean ˋॱ;
    @Field(getter = "getSecondaryWakeLockName", id = 10)
    private final String ˎ;
    @Field(getter = "getTimeMillis", id = 2)
    private final long ˏ;
    @Field(getter = "getHostPackage", id = 13)
    private final String ˏॱ;
    @Field(getter = "getBeginPowerPercentage", id = 15)
    private final float ͺ;
    @VersionField(id = 1)
    private final int ॱ;
    @Field(getter = "getTimeout", id = 16)
    private final long ॱˊ;
    @Field(getter = "getCodePackage", id = 17)
    private final String ॱॱ;
    @Field(getter = "getCallingPackages", id = 6)
    private final List<String> ᐝ;
    private long ᐝॱ = -1;

    @Constructor
    public WakeLockEvent(@Param(id = 1) int i, @Param(id = 2) long j, @Param(id = 11) int i2, @Param(id = 4) String str, @Param(id = 5) int i3, @Param(id = 6) List<String> list, @Param(id = 12) String str2, @Param(id = 8) long j2, @Param(id = 14) int i4, @Param(id = 10) String str3, @Param(id = 13) String str4, @Param(id = 15) float f, @Param(id = 16) long j3, @Param(id = 17) String str5, @Param(id = 18) boolean z) {
        this.ॱ = i;
        this.ˏ = j;
        this.ˊ = i2;
        this.ˋ = str;
        this.ˎ = str3;
        this.ॱॱ = str5;
        this.ʽ = i3;
        this.ᐝ = list;
        this.ʻ = str2;
        this.ʼ = j2;
        this.ˊॱ = i4;
        this.ˏॱ = str4;
        this.ͺ = f;
        this.ॱˊ = j3;
        this.ˋॱ = z;
    }

    public final long ˊ() {
        return this.ˏ;
    }

    public final int ˋ() {
        return this.ˊ;
    }

    public final long ˏ() {
        return this.ᐝॱ;
    }

    public final void writeToParcel(Parcel parcel, int i) {
        int ॱ = apc.ॱ(parcel);
        apc.ॱ(parcel, 1, this.ॱ);
        apc.ˊ(parcel, 2, ˊ());
        apc.ˎ(parcel, 4, this.ˋ, false);
        apc.ॱ(parcel, 5, this.ʽ);
        apc.ˏ(parcel, 6, this.ᐝ, false);
        apc.ˊ(parcel, 8, this.ʼ);
        apc.ˎ(parcel, 10, this.ˎ, false);
        apc.ॱ(parcel, 11, ˋ());
        apc.ˎ(parcel, 12, this.ʻ, false);
        apc.ˎ(parcel, 13, this.ˏॱ, false);
        apc.ॱ(parcel, 14, this.ˊॱ);
        apc.ˊ(parcel, 15, this.ͺ);
        apc.ˊ(parcel, 16, this.ॱˊ);
        apc.ˎ(parcel, 17, this.ॱॱ, false);
        apc.ˊ(parcel, 18, this.ˋॱ);
        apc.ˎ(parcel, ॱ);
    }

    public final String ˎ() {
        String str;
        String str2;
        String str3;
        String str4;
        String str5 = this.ˋ;
        int i = this.ʽ;
        if (this.ᐝ == null) {
            str = "";
        } else {
            str = TextUtils.join(",", this.ᐝ);
        }
        int i2 = this.ˊॱ;
        if (this.ˎ == null) {
            str2 = "";
        } else {
            str2 = this.ˎ;
        }
        if (this.ˏॱ == null) {
            str3 = "";
        } else {
            str3 = this.ˏॱ;
        }
        float f = this.ͺ;
        if (this.ॱॱ == null) {
            str4 = "";
        } else {
            str4 = this.ॱॱ;
        }
        return new StringBuilder(((((String.valueOf(str5).length() + 51) + String.valueOf(str).length()) + String.valueOf(str2).length()) + String.valueOf(str3).length()) + String.valueOf(str4).length()).append("\t").append(str5).append("\t").append(i).append("\t").append(str).append("\t").append(i2).append("\t").append(str2).append("\t").append(str3).append("\t").append(f).append("\t").append(str4).append("\t").append(this.ˋॱ).toString();
    }
}
